package com.wz.two;

/**
 * @description: 抽象装饰者：持有对具体构件角色的引用并定义与抽象构件角色一致的接口
 * @author: WZ
 * @create: 2019-02-11 09:50
 **/

public class Decorator implements Person {

    protected Person person;

    @Override
    public void eat() {
        person.eat();
    }

    public void setPerson(Person person) {
        this.person = person;
    }
}
